package cn.mily.pet.service;

import cn.mily.basics.service.IBasicService;
import cn.mily.basics.utils.PageBean;
import cn.mily.pet.domain.Pet;
import cn.mily.pet.domain.PetType;
import cn.mily.pet.domain.SourceType;
import cn.mily.pet.query.FindMastQuery;
import org.apache.catalina.servlet4preview.http.HttpServletRequest;

import java.util.List;

public interface IPetService extends IBasicService<Pet> {
    void add(Pet pet, HttpServletRequest request);

    /**
     * 宠物管理 查询 列表展示
     * @param query
     * @param request
     * @return
     */
    PageBean<Pet> findAll(FindMastQuery query, HttpServletRequest request);

    /**
     * 批量上架
     * @param ids
     */
    void patchOn(Long[] ids);

    /**
     * 批量下架
     * @param ids
     */
    void patchOff(Long[] ids);

    List<PetType> findAllType();

    /**
     * 宠物来源
     * @return
     */
    List<SourceType> findAllSource();
}